home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / ov_all.zip / TI704.ASC < prev    next >
Text File  |  1991-11-11  |  5KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  ObjectVision                           NUMBER  :  704
  9.   VERSION  :  1.0
  10.        OS  :  WIN
  11.      DATE  :  November 11, 1991                        PAGE  :  1/3
  12.  
  13.     TITLE  :  Creating a Multiple Table Form In ObjectVision
  14.  
  15.  
  16.  
  17.  
  18.   This document explains how to use ObjectVision to create multiple
  19.   tables that can be accessed through one form.  The following
  20.   steps demonstrate how to create the multiple tables using
  21.   ObjectVision and how you can access these tables using one form.
  22.  
  23.   Step 1
  24.  
  25.   1.  Create a Master Form.
  26.           Tool|Form.              (Name this form Master)
  27.  
  28.   2.  On this form, create the following field names, Customer Id
  29.   Number, Customer Name, Address, City, State.
  30.  
  31.   3.  Create a Link.  Choose Paradox as the database format.  Name
  32.   this link "First Link" (without the quotes).  Let us call this
  33.   table custinfo.  When prompted,"Create the appropriate buttons"
  34.   select "YES".
  35.  
  36.   Step 2
  37.  
  38.   1.  Create a second Form called Detail One.  This form is only
  39.   being used as a temporary storage place.  Choose Form|New and
  40.   enter Detail One as the form's name.  On this form create two new
  41.   fields, Detail Customer Name, Birthdate.  Make Birthdate a date
  42.   field using Properties|Field Type.  Select the date type you
  43.   would like to use from the selection list.
  44.  
  45.   2.  Create a Second Link.  Select
  46.           Tools|Link|Create
  47.  
  48.   Choose Paradox as the database format.  Name this link "Second
  49.   Link" (no Quotation marks).  Let us call this table, Birth.  When
  50.   prompted if you want ObjectVision to Create Appropriate Buttons,
  51.   choose NO.
  52.  
  53.   3.  Select the form called Detail One.  Cut and Paste all of the
  54.   fields from here to the Master Form.  To select multiple fields
  55.   on the form, begin by clicking on the first field on the form,
  56.   press SHIFT and click on last field.  Select Edit|Cut from the
  57.   ObjectVision menu bar.  Open the Master form.  Select Edit|Paste.
  58.   Locate this block below the fields that are already on the Master
  59.   form.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  ObjectVision                           NUMBER  :  704
  75.   VERSION  :  1.0
  76.        OS  :  WIN
  77.      DATE  :  November 11, 1991                        PAGE  :  2/3
  78.  
  79.     TITLE  :  Creating a Multiple Table Form In ObjectVision
  80.  
  81.  
  82.  
  83.  
  84.   Step 3
  85.  
  86.   1.  Create a third form called Detail Two using Form|New.  On
  87.   this form add the following fields: Detail Tracking Number,Item
  88.   Description, Item Price and Detail Customer ID Number.
  89.  
  90.   2.  Create Third Link.  Select
  91.           Tools|Link|Create
  92.  
  93.   Choose Paradox as the database format.  Name this link "Third
  94.   Link" (no quotation marks).  Let us name this database item.
  95.   When prompted, "Create Appropriate Buttons", choose "NO".
  96.  
  97.   3.  From the Detail Two form, copy and paste all of the fields
  98.   onto the Master Form using the steps described above in Step 2.
  99.   You may now delete the Detail One and Detail Two forms using
  100.   Tools|Stack.  To delete a form, highlight the name of the form
  101.   then using Edit|Cut delete the form from the stack.  Repeat these
  102.   steps to delete Detail Two.
  103.  
  104.   Step 4
  105.  
  106.   1.  Put a decision tree on Detail Customer Name.  Select Detail
  107.   Customer Name.  Select Tools|Tree.  From the Tree Menu Bar select
  108.   OBJECTS|Conclusion.  The conclusion for this field is as follows:
  109.           + Customer Name
  110.  
  111.   This tells ObjectVision that Detail Customer Name will have the
  112.   same value as Customer Name.  An ObjectVision field may only
  113.   receive a value from one table at a time.  If you are linked to
  114.   multiple tables via links, you must have unique ObjectVision
  115.   fields to receive the information from the various tables, while
  116.   at the same time you want to ensure that each table is
  117.   referencing the same keyed field value.
  118.  
  119.   2.  Place the following tree on Detail Customer Id Number:
  120.           + Customer Id Number
  121.  
  122.   At this point, if you do not wish to display these duplicate
  123.   fields (Detail Customer Name and Detail Customer ID Number) on
  124.   the form, you can remove the field names and the field borders.
  125.  
  126.           Select Properties|Field Type   (deselect the display
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  ObjectVision                           NUMBER  :  704
  141.   VERSION  :  1.0
  142.        OS  :  WIN
  143.      DATE  :  November 11, 1991                        PAGE  :  3/3
  144.  
  145.     TITLE  :  Creating a Multiple Table Form In ObjectVision
  146.  
  147.  
  148.  
  149.  
  150.                                           field name box)
  151.           Select Properties|Borders      (deselect the outline
  152.                                           box)
  153.  
  154.   Shrink the fields down so they are as small as they can get.
  155.  
  156.   Step 5
  157.   You will want to update the decision trees for the Master form's
  158.   button fields so they will update all of the databases at the
  159.   same time.  For example the Enter Button would have the following
  160.   decision tree:
  161.  
  162.           @Store("Link One")              (using CTRL ENTER at the
  163.           @Store("Second Link")           end of each line to add
  164.           @Store("Third Link")            additional conclusions)
  165.  
  166.   Do this for all of your button fields.  You may want to add
  167.   additional Button fields that will only increment the database
  168.   you are trying to page through.
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.